#include <stdio.h>
int main() {
    int n, first = 1;
    scanf("%d", &n);
    printf("%d=", n);
    int k = 2;
    while(n > 1){
            if (n % k == 0){
                if (first){
                    printf("%d", k);
                    first = 0;
                }else{
                printf("*%d", k);
                
            }
            n /= k;
        }
        else k++;

        }
        return 0;
}